let $a := document("bib.xml")//author
for $last in distinct-values($a/last)
return $last



